#bin/sh

DOCKER_IMAGE=dockerhub.qingcloud.com/wcloud/laravel-nginx-php:latest
DOCKER_CONTAINER=huahuagou-api

APP_PATH=$(pwd)
echo $APP_PATH

docker rm -f $DOCKER_CONTAINER || true
docker run -d --name $DOCKER_CONTAINER \
    -p 8082:80 \
    -v $APP_PATH:/var/www/default/ \
    $DOCKER_IMAGE
